package com.ruoyi.ewem.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 产品表
 * @TableName ewem_process
 */
@TableName(value ="ewem_process")
@Data
public class Process implements Serializable {
    /**
     * 产品id
     */
    @TableId(type = IdType.AUTO)
    private Integer processId;

    /**
     * 批次(原料-产品批次)
     */
    private String batchNum;

    /**
     * 作物id
     */
    private Integer productId;

    /**
     * 厂商id
     */
    private Integer firmId;

    /**
     * 生产日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date productionTime;

    /**
     * 保质期
     */
    private String shelfLife;

    /**
     * 质量检测信息
     */
    private Integer qualityId;

    /**
     * 加工状态(0:'未加工' 1:'已加工')
     */
    private String processStatus;

    /**
     * 库状态(0:'未出库' 1:'已出库')
     */
    private String bankStatus;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private String productName;

    @TableField(exist = false)
    private String qualityName;

    @TableField(exist = false)
    private String firmName;

    @TableField(exist = false)
    private Integer totalCount;

    private String processName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
